import request from '@/utils/request'

/**
 * 充值记录列表
 * @param {Object} params 
 */
export function queryRecordPage(params) {
  return request({
    url: '/system/record/list',
    method: 'get',
    params: params
  })
}


/**
 * 充值记录导出
 * @param {String} id 
 */
export function recordExport(data) {
  return request({
    url: '/system/record/export',
    method: 'post',
    data: data
  })
}


/**
 * 充值记录详情
 * @param {String} id 
 */
export function queryRecordDetail(id) {
  return request({
    url: '/system/record/'+id,
    method: 'get'
  })
}

/**
 * 新增充值记录
 * @param {Object} data 
 */
export function addRecord(data) {
  return request({
    url: '/system/record',
    method: 'post',
    data: data
  })
}


/**
 * 编辑充值记录
 * @param {Object} data 
 */
export function editRecord(data) {
  return request({
    url: '/system/record',
    method: 'put',
    data: data
  })
}


/**
 * 删除充值记录
 * @param {String} ids 
 */
export function deleteRecord(ids) {
  return request({
    url: '/system/record/'+ids,
    method: 'delete',
    data: data
  })
}

